using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DonMau: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DonMauFields
		{
			DonMau_ID,
			TenDonMau,
			ThoiGian,
			BacSi,
			ChanDoan,
			LoiDan
		}
		#endregion

		#region Data Members

			int _donMau_ID;
			string _tenDonMau;
			DateTime? _thoiGian;
			string _bacSi;
			string _chanDoan;
			string _loiDan;

		#endregion

		#region Properties

		public int  DonMau_ID
		{
			 get { return _donMau_ID; }
			 set
			 {
				 if (_donMau_ID != value)
				 {
					_donMau_ID = value;
				 }
			 }
		}

		public string  TenDonMau
		{
			 get { return _tenDonMau; }
			 set
			 {
				 if (_tenDonMau != value)
				 {
					_tenDonMau = value;
				 }
			 }
		}

		public DateTime?  ThoiGian
		{
			 get { return _thoiGian; }
			 set
			 {
				 if (_thoiGian != value)
				 {
					_thoiGian = value;
				 }
			 }
		}

		public string  BacSi
		{
			 get { return _bacSi; }
			 set
			 {
				 if (_bacSi != value)
				 {
					_bacSi = value;
				 }
			 }
		}

		public string  ChanDoan
		{
			 get { return _chanDoan; }
			 set
			 {
				 if (_chanDoan != value)
				 {
					_chanDoan = value;
				 }
			 }
		}

		public string  LoiDan
		{
			 get { return _loiDan; }
			 set
			 {
				 if (_loiDan != value)
				 {
					_loiDan = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DonMau_ID", "DonMau_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenDonMau", "TenDonMau",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("BacSi", "BacSi",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("ChanDoan", "ChanDoan",300));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LoiDan", "LoiDan",200));
		}

		#endregion

	}
}
